<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" />
<xsl:template match="/"><xsl:if test="Schema/@WcfDataContract='True'">using System.Runtime.Serialization;
</xsl:if>using ESpace.DALibrary.OleDb;

namespace <xsl:value-of select="Schema/@DataEntityNameSpace" />
{
<xsl:if test="Schema/@WcfDataContract='True'">	[DataContract]
</xsl:if>	public class <xsl:value-of select="Schema/@TableName" /> : DataEntityBase
	{
		public <xsl:value-of select="Schema/@TableName" />()
		{
			base.InitMetaData();
		}
<xsl:for-each select="Schema/Columns">
		private <xsl:value-of select="concat(LANGUAGE_TYPE,' _',COLUMN_NAME)" />;
<xsl:if test="/Schema/@WcfDataContract='True'">		[DataMember]
</xsl:if>		public <xsl:value-of select="concat(LANGUAGE_TYPE,' ',COLUMN_NAME)" />
		{
			get
			{
				return this._<xsl:value-of select="COLUMN_NAME" />;
			}
			set
			{
				this._<xsl:value-of select="COLUMN_NAME" /> = value;
				IsChanged = true;
			}
		}
</xsl:for-each>	}
}</xsl:template>
</xsl:stylesheet>